<%@ page language="java" import="java.util.*,com.king.cms.common.PowerParameter,com.king.cms.orm.*" pageEncoding="UTF-8"%>
<%@ include file="../../include/css.jsp"%>
<%-- /*包含css样式表*/ --%> 
<%   
	String pageFunc = "帐号设置";
%>
<%
		int pow=(PowerParameter.save | PowerParameter.cls | PowerParameter.list);

CmsUser cmsUser=(CmsUser)request.getAttribute("cmsUser");
%>


<html>
	<head>
		<title><%=pageFunc%>
		</title>
		<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">
		<script language="javascript">
	function doEnable()
	{
		form1.bmMc.disabled=false;
		form1.bmBzrs.disabled=false;
	}
	function ki_save(){

	  if(clskg(document.getElementById("uid").value) == ''){
	 	  alert('帐号不能为空');
	 	  return false;
	 }
	 if(clskg(document.getElementById("userPass").value)== ''){
	 
	 			alert('密码不能为空');
	 			return false;
	  } 
	  if(clskg(document.getElementById("userPassconfirm").value) == ''){
	 			alert('密码确认不能为空');
	 			return false;
	  } 
	  if(clskg(document.getElementById("userPass").value) != clskg(document.getElementById("userPassconfirm").value)){
	 			alert('两次输入密码不一致');
	 			return false;
	  } 
	  if(clskg(document.getElementById("id").value) == ''){
	 			alert('请选择人员');
	 			return false;
	  } 
	 
	 form1.submit();
	}
	function ki_cls(){
		document.getElementById("uid").value='';
		document.getElementById("userPass").value='';
		document.getElementById("userPassconfirm").value='';
	}
	function ki_list(){
		window.open('<%=basePath%>user.do?doClass=acclist','_self');
	}
	////////除去空格/////////
	function clskg(va){
	  var th=/\s/g;
	 va=va.replace(th,'');
	 return va;
	}
	function selRole(){
      window.location.href="<%=basePath%>user.do?doClass=userrole&usreid="+form1.id.value;
   
   }
</script>
	</head>
	<body background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
		<p>&nbsp;</p>
<form name="form1" action="<%=path%>/user.do?doClass=accsaveamend" method="post">
	<center>	
	<table border="0" cellpadding="0" cellspacing="0" width="100%" height="2">
    <tr>
      <td width="9" height="1">
      </td>
      <td  height="1" background="<%=path%>/img/images_06.gif">
      <p align="center"><b><%=pageFunc%></b></td>
      <td width="9" height="1">
      </td>
    </tr>
    </table>

	<table border="0" cellpadding="0" cellspacing="0" width="70%" height="1">
		<tr>
		  <td height="3">
		  </td>
		</tr>
	</table>       
	<table height="48" border="0" cellpadding="2" cellspacing="1" class="bg_table" style="width:70%" bordercolor="#111111">
	   <tr class="top_td"> 
		<td colspan="4"></td>
	  </tr>
          <tr class="td2">
            <td width="20%">帐号</td>
            <td width="80%" colspan="3">
			<input name="uid" type ="text" class="area100" value="<%=cmsUser.getUid() %>" check="c_n_50" style="width:98%" >
            </td>
          </tr>
           <tr class="td2">
            <td width="20%">密码</td>
            <td width="80%" colspan="3">
			<input name="userPass" type ="password" class="area100" check="c_n_50" style="width:98%" >
            </td>
          </tr>
          <tr class="td2">
            <td width="20%">密码确认</td>
            <td width="80%" colspan=3>
			<input name="userPassconfirm" type ="password" class="area100" check="c_n_50" style="width:98%" >
            </td>
          </tr>
          <tr class="td2"> 
            <td>人员选择</td>
            <td width="30%"><%=cmsUser.getUserName() %> <input  type ="hidden"  name="id" class="area100" value="<%=cmsUser.getId() %>" ></td>
            <td>勾选角色</td>
               <td><a href="javaScript:onclick=selRole()"><font color="red">选择</font></a></td>
          </tr>
          
		  <tr class="top_td" >
			<td  colspan="4"></td>
		  </tr>
     </table>
  </center>
</form>
		</body>
</html>
<%@ include file="../../pow.jsp"%>
